package org.agile4j.patterns.command.pc;

/**
 * 技嘉主板, 开机命令的真正实现者 ,在Command模式中充当Receiver
 * @author user
 */
public class GigaMainBoard implements MainBoardApi {

	@Override
	public void open() {
		try {
			System.out.println("技嘉主板正在开机,请稍候.");
			Thread.sleep(500);
			System.out.println("接通电源.......");
			Thread.sleep(500);
			System.out.println("设备检查.......");
			Thread.sleep(500);
			System.out.println("装载系统.......");
			Thread.sleep(500);
			System.out.println("机器正常运转起来......");
			Thread.sleep(500);
			System.out.println("机器已经正常打开, 请操作.");

		} catch (InterruptedException e) {
			e.printStackTrace();
		}

	}
	
	@Override
	public void reset() {
		try {
			System.out.println("微星主板正在重启,请稍候.");
			Thread.sleep(1500);
			System.out.println("机器已经正常打开, 请操作.");

		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
